<!--
 * @Descripttion: 
 * @version: 
 * @Author: sueRimn
 * @Date: 2020-11-24 16:13:16
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-25 18:13:33
-->
<template>
    <div class="main-content">
        <div class="addbox">
            <el-page-header @back="goBack" content="新增个人课表">
            </el-page-header>

            <div class="title"></div>

            <el-tabs :tab-position="tabPosition" v-model="isComponents">
                <el-tab-pane label="年度列表" name="Year">
                    <Year v-if="isComponents == 'Year'"></Year>
                </el-tab-pane>
                <el-tab-pane label="时段列表" name="Week">
                    <Week v-if="isComponents == 'Week'"></Week>
                </el-tab-pane>
                <el-tab-pane label="日程列表" name="Schedule">
                    <Schedule v-if="isComponents == 'Schedule'"></Schedule>
                </el-tab-pane>
            </el-tabs>
        </div>
    </div>
</template>

<script>
import Year from "./components/newSelfTable/year";
import Week from "./components/newSelfTable/week";
import Schedule from "./components/newSelfTable/schedule";
export default {
    components: {
        Year,
        Week,
        Schedule
    },
    data() {
        return {
            tabPosition: "left",
            isComponents: "Year"
        };
    },
    methods: {
        goBack() {
            this.$router.go(-1);
        }
    }
};
</script>

<style scoped lang="scss">
.main-content {
    width: 100%;
    padding: 26px;
    box-sizing: border-box;

    .title {
        font-size: 20px;
        font-weight: 600;
        color: #6b6a6a;
        margin-bottom: 40px;
    }

    .addbox {
        width: 100%;
        border-radius: 8px;
        background: #fff;
        min-height: 800px;
        padding: 26px;
        box-sizing: border-box;
    }
}
</style>
